#ifndef _LED_H
#define _LED_H

#include "stm32f4xx.h"
#include "stm32f4xx_hal.h"
#include "stm32f4xx_hal_gpio.h"
#include "stdint.h"
#include "main.h"

#define led_always_on      1      //常量
#define led_flash_quickly  2      //快闪
#define led_flash_slowly   3      //慢闪

typedef struct led
{
    uint8_t led_status;

    void (*led_init)(void);

    void (*set_led_status)(uint8_t led_status);
    

} led_t;

void set_led_status(uint8_t led_status);
void led_init(void);

#endif
